<% if @operation.nil? %>
$('#' + '<%=j raw "topic_append_remark_#{@remark.topic.id}" %>').replaceWith('<%=j render @remark %>');
$('#' + '<%=j raw "topic_#{@remark.topic.id}" %>').append('<hr \/>')
$('#' + '<%=j raw "topic_#{@remark.topic.id}" %>').append('<%=j render partial: 'topics/remark', locals: { topic: @remark.topic } %>');
<% else %>
$('#' + '<%=j raw "topic_append_remark_#{@remark.topic_id}" %>').replaceWith('<%=j render @remark %>');
<% end %>
